package gmail;

import java.util.MissingResourceException;
import java.util.Properties;

public final class Messages 
{

    private static Properties RESOURCE_BUNDLE;
   
    static 
    {
        RESOURCE_BUNDLE = new Properties();
        RESOURCE_BUNDLE.put("GM_LINK_GMAIL","https://mail.google.com/mail");
        RESOURCE_BUNDLE.put("GM_LINK_LOGIN","https://www.google.com/accounts/ServiceLoginAuth");
        RESOURCE_BUNDLE.put("GM_LINK_LOGOUT","https://mail.google.com/mail?logout");
        RESOURCE_BUNDLE.put("GM_LINK_LOGIN2","https://www.google.com/accounts/");
        RESOURCE_BUNDLE.put("GM_REFER","https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%3Fui%3Dhtml%26zy%3Dl");
        RESOURCE_BUNDLE.put("GM_ATTACHMENT","https://mail.google.com/mail?view=att&disp=att");
        RESOURCE_BUNDLE.put("GM_VERSION","0.3.17");
        RESOURCE_BUNDLE.put("GM_LOGON_SITE","gmail.google.com");
    }

    public static String getString(String key) 
    {
        try 
        {
            return RESOURCE_BUNDLE.getProperty(key);
        } 
        catch (MissingResourceException e) 
        {
            return '!' + key + '!';
        }
    }
}
